const {
    unDefined,
    nullValue,
    emailver,
    passwordver,
  } = require("@/utils/valiData");
  const result = require("@/utils/handle");

  // 根据定位获取当地游记
const Localtravels = (page, address) => {
    unDefined([page, address])
    nullValue([
        { value: page, tips: '缺少分页page值' },
        { value: address, tips: '缺少地址address值' }
    ])
}

// 当地玩法：按地址和游记分类关键词查询游记
const Addressquerytravels = (address, keywords, page) => {
    unDefined([address, keywords, page])
    nullValue([
        { value: address, tips: '缺少地址address值' },
        { value: keywords, tips: '缺少查询keywords值' },
        { value: page, tips: '缺少分页page值' },
    ])
}

// 用户根据分类选择地址
const Chooseaddress = (type) => {
    unDefined([type])
    nullValue([
        { value: type, tips: '缺少type查询值' }
    ])
}


module.exports = {
    Localtravels,
    Addressquerytravels,
    Chooseaddress
}